package com.jmp.base.dto;

import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class OrderListVo {
    private PageResponse2<Order> orderPage;

    @ApiModel("OrderListResponse.Order")
    @Data
    @Builder
    public static class Order {
        private Integer orderId;
        private BigDecimal orderPrice;
        private Integer userId;
        private Integer orderState;
        private Integer refundState;
        private String refundRemark;

        private Integer companyId;

        private List<Goods> goodsList;

        private Integer cancelFlag;
        private Integer payFlag;
        private Integer refundFlag;
        private Integer refundCancelFlag;
        private Integer remindSendFlag;
        private Integer completeFlag;
        private Integer sendFlag;
    }

    @Data
    @Builder
    public static class Goods {
        private Integer goodsId;
        private String goodsName;
        private String goodsPhoto;
        private String skuName;
        private Integer skuNum;
        private BigDecimal price;

        private Integer cardId;
    }
}
